package com.show.mapper;

import com.show.bo.BaseBo;
import com.show.bo.CompanyBo;
import com.show.pojo.Base;
import com.show.pojo.R;
import com.show.vo.CityCompanyDataVo;
import com.show.vo.CompanyVo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author 绛河
 */

public interface BaseMapper {
    List<Base> searchAll();

    Integer searchCount();

    List<R> searchByGroup();

    @MapKey("id")
    List<Map<String, Object>> searchByNature();

    @MapKey("id")
    List<Map<String,Object>> searchByIndustry();

    @MapKey("id")
    List<Map<String, Object>> searchTop();

    /**
     * 查询省份信息
     */
    List<BaseBo> findProvinceCompany();

    /**
     * 根据 省份 查询  公司信息
     */
    List<CompanyVo> findCompanyByProvince(String name);
}
